import { v4 as uuidv4 } from 'uuid';
import config from '@/config'
const mqtt = config.mqtt

const constant = {
    avatar: 'vuex_avatar',
    name: 'vuex_name',
    id: 'vuex_id',
    tenantId: 'vuex_tenantId',
    roles: 'vuex_roles',
    permissions: 'vuex_permissions',
    dataPermission: 'vuex_dataPermission',
    dictCache: 'vuex_dictCache',
    tenantName:'vuex_tenantName'
 }
 
 export const API_NAME = 'pc';
 export const MQTT_INFO = {
   host: mqtt,
   port: 1883,
   username: 'juxunda',
   password: 'juxunda@202345465',
   clientId: uuidv4(),
   clean: true,
   protocol: false,
 };
 
export const StatusTypeEnum =  [
  '正常',
  '高报',
  '低报',
  '探测器内部错误',
  '通讯错误',
  '主机屏蔽探测器',
  '探测器故障',
  '上线' ,
  '离线',
]


 export default constant
